package com.itstudio.portal.exception;

import com.itstudio.portal.enums.HttpCodeEnum;
import lombok.Data;

@Data
public class SystemException extends RuntimeException{

    private int code;
    private String message;

    public SystemException(HttpCodeEnum httpCodeEnum){
        this.code = httpCodeEnum.getCode();
        this.message = httpCodeEnum.getMsg();
    }
}
